<?php

namespace app\rental\model;

use think\Model;

class RentalReserveModel extends Model
{
    public static   $STATUS = array(
        1=>"已联系",
        0=>"未联系",
    );
    /**
     * 关联汽车
     */
    public function cars()
    {
        return $this->belongsTo('RentalCarModel','car_id');
    }
    public function getChangeColorAttr($value){
        $arr=[1=>'是',2=>'否'];
        return $arr[$value];
    }
public function getUseTypeAttr($value){
        $arr=[1=>'自驾',2=>'婚庆',3=>'商务',4=>'展示',5=>'其它'];
        return $arr[$value];
    }
}
